using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace PicAFlick.App
{
    public partial class ImageLibraryMainForm : Form
    {
       
        public ImageLibraryMainForm(PicAFlick.Domain.Folder folder)
        {
            InitializeComponent();
            rootFolder = folder;
        }


        PicAFlick.Domain.Folder rootFolder;

        private void ImageLibraryMainForm_Load(object sender, EventArgs e)
        {
             
            this.folderListControl1.RootFolder = rootFolder;
            this.folderListControl1.SelectionChange += new FolderListControl.SelectedFolderChanged(folderListControl1_SelectionChange);
           
        }

        void folderListControl1_SelectionChange(PicAFlick.Domain.Folder folder)
        {
            //MessageBox.Show("You selected " + folder.Name);
            this.folderView1.Folder = folder;
        }




        
    }
}

